package org.example.service.middlegateway.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("搜索参数")
public class SearchParamsDTO {

    @ApiModelProperty(value = "索引，用英文逗号,分割", required = true, example = "article")
    private String index;

    @ApiModelProperty(value = "dsl语句，json格式的字符串", required = true, example = "{\"query\":{\"match\":{\"content\":\"合同\"}}}")
    private String statement;

    @ApiModelProperty(value = "开始时间，年月日时分秒格式", required = true, example = "2020-01-01 00:00:00")
    private String startTime;

    @ApiModelProperty(value = "结束时间，年月日时分秒格式", required = true, example = "2021-03-21 16:20:20")
    private String endTime;

}
